package com.simpleboot1.demo.knife;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author guojianfeng.
 * @date 2020/3/16
 */
@Api(tags = "knifeDemo模块")
@RestController
@Validated
@RequestMapping("/knife/demo")
public class KnifeDemo {

    /**
     * knife首页 http://localhost:18000/doc.html
     * @return
     */
    @ApiOperation("查看")
    @GetMapping("/get")
    public String view() {
        return "hello query";
    }
}
